#!/usr/bin/env sh

set -o xtrace

export TRUST_PARAMS=1
export ENABLE_WIN_POST=true
export ENABLE_WINDOWS_POST=true

tag=${TAG:-debug}

go run -tags=$tag ./cmd/lotus wallet import ~/.genesis-sectors/pre-seal-t01000.key
go run -tags=$tag ./cmd/lotus-miner init --actor=t01000 --genesis-miner --pre-sealed-sectors=~/.genesis-sectors --pre-sealed-metadata=~/.genesis-sectors/pre-seal-t01000.json
